package dao;

import java.util.HashMap;
import java.util.List;

import model.Role;

import org.springframework.stereotype.Repository;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;

@Repository
public interface RoleDao {

	/**
	 * 新增
	 * 
	 * @param user
	 * @return
	 */
	public void save(Role role);

	/**
	 * 修改
	 * 
	 * @param user
	 * @return
	 */
	public void update(Role role);

	/**
	 * 删除
	 * 
	 * @param id
	 */
	public void delete(Integer id);

	/**
	 * 分页
	 * 
	 * @param pageBounds
	 * @return
	 */
	public List<HashMap<String, Object>> queryPage(PageBounds pageBounds);

	public List<HashMap<String, Object>> getRoles(Integer userid);
}
